//
//  MYCreditsExchangeCell.swift
//  MuYing
//
//  Created by tbb on 2019/8/9.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit

class MYCreditsExchangeCell: YQTableViewBaseCell {
    
    @objc var recordModel = YQPRecordEntityModel()
    
    @objc @IBOutlet weak var titleLb: UILabel!
    
    @objc @IBOutlet weak var timeLb: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        
        //self.contentView.backgroundColor = UIColor.clear;//UIColorFromHex(rgbValue: 0xFAFAFA);
    }
    
    override func layoutSubviews() {
        super.layoutSubviews();
        self.backgroundColor = UIColor.clear;
        self.contentView.backgroundColor = UIColor.clear;
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    @objc func setModel(_ model:YQPRecordEntityModel){
        self.recordModel = model
        let time = YQPInsureValidate.compareCurrentTime(YQPInsureValidate.time(inStr: model.createTime))
        
        self.timeLb.text = time
        
        self.titleLb.text = kYQLSSwift("兑换了 ") + model.goodsName
    }
    
}
